package com.by.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Value;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;

/**
 * @author HY
 * @version 1.0
 * @description
 * @date 2025/2/21
 * @since JDK21
 */
@Data
@ApiModel(description = "字典表")
public class Dictionaries {
    @ApiModelProperty("字典id 默认自增")

    int id;
    @ApiModelProperty("字典编码")
    @NotBlank(message = "字典编码不能为空！")
    String code;
    @ApiModelProperty("字典名称")
    @NotBlank(message = "字典名称不能为空！")
    String name;
    @ApiModelProperty("字典父级id")
    int pid;
    @ApiModelProperty("字典排序")
    int sorts;
    @ApiModelProperty("字典是否删除")
    int isdel;

}
